package cn.wolfcode.web.feign;


import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.Product;
import cn.wolfcode.web.feign.fallback.ProductFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "product-service",fallback = ProductFeignFallback.class)
public interface ProductFeignApi {

    @RequestMapping("/product/queryByProductIds")
    Result<List<Product>> queryByProductIds(@RequestParam("productIds") List<Long> productIds);
}
